<!--团购正常-->
{set:$free_time = ITime::getDiffSec($groupon['end_time']);}

<li>
	团购价：<em class="price">￥{$groupon['regiment_price']}</em>
</li>

<li id="grouponCount">
	还剩 <time class="time" id='cd_hour_grouponCount'>{echo:floor($free_time/3600);}</time>
	小时 <time class="time" id='cd_minute_grouponCount'>{echo:floor(($free_time%3600)/60);}</time>
	分 <time class="time" id='cd_second_grouponCount'>{echo:$free_time%60;}</time>
	秒结束
</li>

<li>
	销售价：<del class="old_price">￥<span id="data_sellPrice">{$sell_price}</span></del>
</li>
<li>销售数量：{$groupon['sum_count']}件</li>
<li>限购量：{if:$groupon['limit_min_count']==$groupon['limit_max_count']}{$groupon['limit_min_count']}{else:}{$groupon['limit_min_count']} 至 {$groupon['limit_max_count']}{/if}件</li>

<script>
//开启倒计时功能
var cd_timer = new countdown();
cd_timer.add('grouponCount');

//DOM加载完毕开始
jQuery(function()
{
	//团购活动的库存量
	var regimentStoreNums = "{echo:$groupon['store_nums'] - $groupon['sum_count']}";
	$('#data_storeNums').text(regimentStoreNums);

	//团购最小购买数量
	$('#buyNums').attr("minNums","{$groupon['limit_min_count']}");
	$('#buyNums').attr("maxNums","{$groupon['limit_max_count']}");
	$('#buyNums').val("{$groupon['limit_min_count']}");
});
</script>